package com.brite.android.game.action;

public class Rotation {
	//	public static double[] RotMat30 = {
	//		0.8660254037844387, -0.0, -0.49999999999999994, 0.0, 1.0, -0.0, 0.49999999999999994, 0.0, 0.8660254037844387
	//	};
	public static double[] RotMat90 = {
		0.0, -0.0, -1.0, 0.0, 1.0, -0.0, 1.0, 0.0, 0.0
	};
	public static double[] RotMat150 = {
		-0.8660254037844387, -0.0, -0.49999999999999994, 0.0, 1.0, -0.0, 0.49999999999999994, 0.0, -0.8660254037844387
	};

	public static double[] RotMat10 = {
		0.984807753012208, -0.0, -0.17364817766693033, 0.0, 1.0, -0.0, 0.17364817766693033, 0.0, 0.984807753012208
	}; 
	public static double[] RotMat15 = {
		0.9659258262890683, -0.0, -0.25881904510252074, 0.0, 1.0, -0.0, 0.25881904510252074, 0.0, 0.9659258262890683
	};
	
	public static double[] RotMat15tab = {
		1.0, 0.0, 0.0, 0.0, 0.8660254037844387, -0.49999999999999994, 0.0, 0.49999999999999994, 0.8660254037844387
	};
	
	public static double[] RotMat15tab2 = {
		1.0, -0.0, 0.0, 0.0, 0.8660254037844387, 0.49999999999999994, -0.0, -0.49999999999999994, 0.8660254037844387
	};
	
	public static double[] RotMat20 = {
		0.9396926207859084, -0.0, -0.3420201433256687, 0.0, 1.0, -0.0, 0.3420201433256687, 0.0, 0.9396926207859084
	};

	public static void rotate(double a[], double x[], double y[]) {
		y[0] = a[0]*x[0]+a[1]*x[1]+a[2]*x[2];
		y[1] = a[3]*x[0]+a[4]*x[1]+a[5]*x[2];
		y[2] = a[6]*x[0]+a[7]*x[1]+a[8]*x[2];
	}
}
